package com.hospital.enumeration;

import lombok.Getter;

@Getter
public enum BusinessExceptionEnum {
    NO_AVAILABLE_BEDS("已无空闲床位"),
    NO_DOCTOR_AVAILABLE_IN_DEPT("该科室已无可用医生"),
    PATIENT_NOT_EXIST("患者不存在"),
    PATIENT_ALREADY_DISCHARGED("患者已出院"),
    DEPARTMENT_NOT_EXIST("科室不存在"),
    DOCTOR_NOT_EXIST("医生不存在"),
    USER_NOT_FOUND("用户不存在"),
    PASSWORD_ERROR("密码错误"),
    JWT_ERROR("令牌错误"),
    USER_ALREADY_EXISTS("用户名已存在");

    private String message;

    private BusinessExceptionEnum(String message) {
        this.message = message;
    }
}
